<?php
/**
 * Model de Servico
 * @filesource  06/04/2011
 * @author      Estrada Virtual <http://estradavirtual.com.br>
 * @copyright   Copyright <2011> Estrada Virtual
 * @package     <<application>>
 * @subpackage  <<application>>.application.models
 * @version     $Id$
 */
class Model_Servico extends App_Db_Table
{
    protected $_name             = 'servico';
    protected $_primary          = array('id_servico');
    protected $_dependentTables  = array('Model_Anotacao', 'Model_Artefato', 'Model_Tarefa');

    protected $_referenceMap     = array(
                    'Cliente' => array(
                            'columns'       => 'fk_cliente',
                            'refTableClass' => 'Model_Cliente',
                            'refColumns'    => 'id_cliente',
                         ),
                    'TipoServico' => array(
                            'columns'       => 'fk_tipo_servico',
                            'refTableClass' => 'Model_TipoServico',
                            'refColumns'    => 'id_tipo_servico',
                         ));
}
